﻿namespace Cavy.UdpClient
{
    public static class IMessageExtension
    {
        public static T As<T>(this IMessage message) where T : IMessage
        {
            return (T) message;
        }
    }
}